
lambda = 1;
n = 10;

load D.dat;

X = D(:,1);
Y = D(:,2);

w=mypolyfit(X,Y,n,lambda);
     
fid = fopen('w.dat','w');
fprintf(fid,'%.8f\n',w);
fclose(fid);

exit;
